<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Config extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'aisle_fee|支付通道费'       => 'require|float|between:0,100',
        'chain_fee|链上手续费'       => 'require|float|between:0,100',
        'platform_fee|平台手续费'       => 'require|float|between:0,100',
    ];
    protected $message = [
        'aisle_fee.between' => '支付通道费比例必须0~100',
        'chain_fee.between' => '链上手续费比例必须0~100',
        'platform_fee.between' => '平台手续费比例必须0~100',

    ];
}
